import Layout from '@/layout'

const traindatabrownRouter = {

  path: '/traindatabrown',
  component: Layout,
  redirect: '/traindatabrownindex',
  name: '数据浏览',
  meta: {
    title: '数据浏览',
    icon: 'example',
    roles: ['editor']
  },

  children: [
    {
      path: 'ttraindatabrownindex',
      component: () => import('@/views/trainDataBrowse/index'),
      name: '按机车浏览',
      meta: { title: '按机车浏览' }
    },
    {
      path: 'MotorcycleDataView',
      component: () => import('@/views/trainDataBrowse/MotorcycleDataView'),
      name: '统计数据-机车',
      meta: { title: '统计数据-机车' }
    },
    {
      path: 'ChartFaultDashboard',
      component: () => import('@/views/trainDataBrowse/ChartFaultDashboard'),
      name: '统计数据-整体(系统)',
      meta: { title: '统计数据-整体(系统)' }
    },
    {
      path: 'ChartFaultBar',
      component: () => import('@/views/trainDataBrowse/ChartFaultBar'),
      name: '统计数据-整体(故障)',
      meta: { title: '统计数据-整体(故障)' }
    }

  ]
}

export default traindatabrownRouter
